#include<iostream>
using namespace std;

class Cube
{
public:
	void setCubeL(int L) {
		cubeL = L;
	}
	int getCubeL() {
		return cubeL;
	}

	void setCubeH(int H) {
		cubeH = H;
	}
	int getCubeH() {
		return cubeH;
	}


	void setCubeW(int W) {
		cubeW = W;
	}
	int getCubeW() {
		return cubeW;
	}


	int calculateM() {
		return 2 * (cubeH * cubeL + cubeH * cubeW + cubeL * cubeW);
	}

	int calculateV() {
		return cubeH * cubeL * cubeW;
	}

	bool isSame(Cube& cube) {
		if (cubeH== cube.getCubeH() && cubeL == cube.getCubeL() && cubeW == cube.getCubeW()) {
			return true;
		}
		return false;
	}

private:
	int cubeL;
	int cubeW;
	int cubeH;
};

bool isSame(Cube& cube1, Cube& cube2) {
	if (cube1.getCubeH() == cube2.getCubeH()&&cube1.getCubeL()==cube2.getCubeL()&&cube1.getCubeW()==cube2.getCubeW()) {
		return true;
	}
	return false;
}



int main() {
	Cube c1;
	c1.setCubeH(10);
	c1.setCubeW(10);
	c1.setCubeL(10);

	Cube c2;
	c2.setCubeH(10);
	c2.setCubeW(10);
	c2.setCubeL(10);

	cout << c1.calculateM() << endl;
	cout << c1.calculateV() << endl;


	cout << c1.isSame(c2) << endl;


	system("pause");
	return 0;
}


